
package com.afd.ozblip.util;

import java.util.ArrayList;
import java.util.List;

import com.afd.ozblip.entity.CategoryEntity;

/**
 * 常量类
 * 
 * @author 徐鹏
 */
public class Constants {

    // public static final String SERVICE_IP = "192.168.137.69";
    // public static final String SERVICE_IP = "192.168.0.3";
    // public static final String SERVICE_IP = "192.168.0.102";
    // public static final String SERVICE_IP = "192.168.3.117";
    // 内网
    // public static final String SERVICE_IP = "192.168.2.225";
    // public static final String SERVICE_PORT = ":8080";
    // public static final String SERVICE_IP = "192.168.1.106";
    // public static final String SERVICE_PORT = ":8080";
    // 外网
    public static final String SERVICE_IP = "111.10.24.164";
    public static final String SERVICE_PORT = ":8082";

    /**
     * 服务器IP与端口号
     */
    // public static final String IPHOST = "http://218.25.10.196";
    // public static final String IPHOST = "http://192.168.1.3:8080";
    // public static final String IPHOST = "http://192.168.1.2:8080";
    // public static final String IPHOST = "http://192.168.1.1:8080";
    // public static final String IPHOST = "http://192.168.0.6:8080";
    public static final String IPHOST = "http://" + SERVICE_IP + SERVICE_PORT;
    // public static final String IPHOST = "http://192.168.3.117:8080";
    // public static final String IPHOST = "http://169.254.67.18:8080";
    // public static final String IPHOST = "http://192.168.0.189:8080";
    // public static final String IPHOST = "http://111.10.24.164:8082";
    // public static final String IPHOST = "http://zyiv.v206.10000net.cn/";

    // public static final String IPHOST = WEB_IP+":8080";

    public static final String WEB_PATH = IPHOST + "/ozblip-web/";
    public static final String WEB_IMAGE_PATH = IPHOST + "/ozblip-web/";
    // TODO 商户模块接口
    // *******************商户模块接口**********************//
    /**
     * 商家列表接口
     */
    public static final String SELLER_LIST_API = IPHOST
            + "/ozblip-web/common/serachSellerAction.do";
    /**
     * 商家列表接口
     */
    public static final String SELLER_DETAIL_API = IPHOST
            + "/ozblip-web/common/serachSellerByIdAction.do";
    /**
     * 商家菜单列表接口
     */
    public static final String SELLER_DISH_LIST_API = IPHOST
            + "/ozblip-web/common/serachSellerDishImfoAction.do";
    /**
     * 商家推荐菜单列表接口
     */
    public static final String SELLER_REC_DISH_LIST_API = IPHOST
            + "/ozblip-web/common/serachSellerRecDishAction.do";
    /**
     * 商家评论列表接口
     */
    public static final String SELLER_REVIEW_LIST_API = IPHOST
            + "/ozblip-web/common/serachSellerReviewAction.do";
    /**
     * 商家签到列表接口
     */
    public static final String SELLER_SIGN_LIST_API = IPHOST
            + "/ozblip-web/common/serachSellerSignAction.do";
    /**
     * 商家签到活动列表接口
     */
    public static final String SELLER_ACTIVITY_LIST_API = IPHOST
            + "/ozblip-web/common/serachSellerAcvitiesAction.do";
    /**
     * 商家图片列表接口
     */
    public static final String SELLER_PHOTO_LIST_API = IPHOST
            + "/ozblip-web/common/serachSellerImgInfoAction.do";
    /**
     * 商家VIP列表接口
     */
    public static final String SELLER_VIP_LIST_API = IPHOST
            + "/ozblip-web/common/serachSellerMemberCardAction.do";
    /**
     * 商家优惠券列表接口
     */
    public static final String SELLER_COUPON_LIST_API = IPHOST
            + "/ozblip-web/common/serachSellerCouponAction.do";
    /**
     * 商家优惠券列表接口
     */
    public static final String SELLER_COUPON_DETAIL_API = IPHOST
            + "/ozblip-web/common/serachSellerCouponImfoAction.do";

    /**
     * 添加推荐菜接口
     */
    public static final String ADD_DISH_API = IPHOST
            + "/ozblip-web/common/addSellerImgInfoAction.do";
    /**
     * 添加点评接口
     */
    public static final String ADD_REVIEW_API = IPHOST
            + "/ozblip-web/common/addSellerReviewAction.do";
    /**
     * 添加VIP接口
     */
    public static final String ADD_VIP_API = IPHOST
            + "/ozblip-web/common/addSellerMemberCardAction.do";
    /**
     * 添加签到接口
     */
    public static final String ADD_SIGN_API = IPHOST
            + "/ozblip-web/common/addSellerSignAction.do";
    /**
     * 添加活动接口
     */
    public static final String ADD_ACTIVITY_API = IPHOST
            + "/ozblip-web/common/addSellerActivityAction.do";
    /**
     * 添加商户接口
     */
    public static final String ADD_SELLER_API = IPHOST
            + "/ozblip-web/common/addSellerAction.do";
    /**
     * 商户报错接口
     */
    public static final String SELLER_ERROR_API = IPHOST
            + "/ozblip-web/common/serachSellerFailInfoAction.do";
    /**
     * 用户反馈接口
     */
    public static final String ADD_FEEDBACK_API = IPHOST
            + "/ozblip-web/common/addFeedbackAction.do";

    // TODO 用户模块接口
    // *******************用户模块接口**********************//
    /**
     * 用户注册接口
     */
    public static final String USER_REGISTER_API = IPHOST
            + "/ozblip-web/common/addUserAction.do";
    /**
     * 用户登录接口
     */
    public static final String USER_LOGIN_API = IPHOST
            + "/ozblip-web/common/loginUserAction.do";
    /**
     * 修改用户信息接口
     */
    public static final String UPDATE_USER_API = IPHOST
            + "/ozblip-web/common/updateUserAction.do";
    /**
     * 用户添加好友接口
     */
    public static final String USER_ADD_FRIEND_API = IPHOST
            + "/ozblip-web/common/addFriendAction.do";
    /**
     * 用户添加优惠券接口
     */
    public static final String USER_ADD_COUPON_API = IPHOST
            + "/ozblip-web/common/addCouponAction.do";
    /**
     * 用户删除优惠券接口
     */
    public static final String USER_DELETE_COUPON_API = IPHOST
            + "/ozblip-web/common/delUserCouponAction.do";
    /**
     * 附近用户列表接口
     */
    public static final String USER_LIST_API = IPHOST
            + "/ozblip-web/common/serachNearByUserAction.do";
    /**
     * 用户好友列表接口
     */
    public static final String USER_FRIEND_LIST_API = IPHOST
            + "/ozblip-web/common/serachUserFriendAction.do";
    /**
     * 用户添加收藏夹接口
     */
    public static final String USER_IS_COLLECT_API = IPHOST
            + "/ozblip-web/common/searchISConnection.do";
    /**
     * 用户添加收藏夹接口
     */
    public static final String USER_ADD_COLLECT_API = IPHOST
            + "/ozblip-web/common/addUserCollectAction.do";
    /**
     * 用户取消收藏夹接口
     */
    public static final String USER_DELETE_COLLECT_API = IPHOST
            + "/ozblip-web/common/delUserCollectAction.do";
    /**
     * 用户收藏夹列表接口
     */
    public static final String USER_COLLECT_LIST_API = IPHOST
            + "/ozblip-web/common/serachUserCollectAction.do";
    /**
     * 用户签到统计接口
     */
    public static final String USER_SIGN_TOTAL_API = IPHOST
            + "/ozblip-web/common/serachUserCommentsInfoAction.do";
    /**
     * 用户签到明细接口
     */
    public static final String USER_SIGN_DETAIL_API = IPHOST
            + "/ozblip-web/common/serachUserCommentsAllInfoAction.do";
    /**
     * 用户会员卡列表接口
     */
    public static final String USER_VIP_LIST_API = IPHOST
            + "/ozblip-web/common/serachUserMemberCardAction.do";
    /**
     * 用户删除会员卡接口
     */
    public static final String USER_DELETE_VIP_API = IPHOST
            + "/ozblip-web/common/delUserMemberCardAction.do";
    /**
     * 用户优惠券列表接口
     */
    public static final String USER_COUPON_LIST_API = IPHOST
            + "/ozblip-web/common/serachUserCouponAction.do";
    /**
     * 用户评论列表接口
     */
    public static final String USER_REVIEW_LIST_API = IPHOST
            + "/ozblip-web/common/serachUserReviewAction.do";
    /**
     * 用户照片列表接口
     */
    public static final String USER_PHOTO_LIST_API = IPHOST
            + "/ozblip-web/common/serachUserUploadImgAction.do";
    /**
     * 用户照片列表接口
     */
    public static final String USER_INTEGRAL_API = IPHOST
            + "/ozblip-web/common/serachUserPointAction.do";
    /**
     * 用户离线消息列表接口
     */
    public static final String USER_MSG_API = IPHOST
            + "/ozblip-web/common/serachUserMsgInfoAction.do";
    /**
     * 用户系统通知列表接口
     */
    public static final String USER_NOTICE_API = IPHOST
            + "/ozblip-web/common/serachUserActiveAction.do";
    // TODO 公共模块接口
    // *******************公共模块接口**********************//
    /**
     * 区域列表接口
     */
    public static final String AREA_LIST_API = IPHOST
            + "/ozblip-web/common/serachAreaByCityAction.do";
    /**
     * 城市列表接口
     */
    public static final String CITY_LIST_API = IPHOST
            + "/ozblip-web/common/serachCityAction.do";
    /**
     * APP更新接口
     */
    public static final String UPDATE_API = IPHOST
            + "/ozblip-web/common/serachUpdateAppAction.do";

    // *******************常用方法**********************//
    public static List<CategoryEntity> getCategoryList() {
        List<CategoryEntity> categoryList = new ArrayList<CategoryEntity>();
        // 0.热门分类
        CategoryEntity hotCategory = new CategoryEntity();
        hotCategory.setParentClassName("热门分类");
        ArrayList<String> hotList = new ArrayList<String>();
        hotList.add("快餐");
        hotList.add("咖啡厅");
        hotList.add("电影院");
        hotList.add("商场");
        hotList.add("酒吧");
        hotList.add("酒店");
        hotList.add("超市/便利店");
        hotCategory.setChildClassList(hotList);
        categoryList.add(hotCategory);
        // 1.美食
        CategoryEntity meishiCategory = new CategoryEntity();
        meishiCategory.setParentClassName("美食");
        ArrayList<String> meishiList = new ArrayList<String>();
        meishiList.add("中餐");
        meishiList.add("台湾菜");
        meishiList.add("澳大利亚菜");
        meishiList.add("意大利餐");
        meishiList.add("西班牙餐");
        meishiList.add("土耳其餐");
        meishiList.add("马来西亚菜");
        meishiList.add("泰国菜");
        meishiList.add("日本料理");
        meishiList.add("韩国料理");
        meishiList.add("印度菜");
        meishiList.add("自助餐");
        meishiList.add("快餐");
        meishiList.add("其他");
        meishiCategory.setChildClassList(meishiList);
        categoryList.add(meishiCategory);
        // 2.休闲娱乐
        CategoryEntity xxylCategory = new CategoryEntity();
        xxylCategory.setParentClassName("休闲娱乐");
        ArrayList<String> xxylList = new ArrayList<String>();
        xxylList.add("酒吧");
        xxylList.add("咖啡厅");
        xxylList.add("桌球馆");
        xxylList.add("KTV");
        xxylList.add("足疗按摩");
        xxylList.add("洗浴");
        xxylList.add("电影院");
        xxylList.add("公园");
        xxylList.add("文化艺术");
        xxylList.add("郊游/景点");
        xxylList.add("游乐游艺");
        xxylList.add("多休闲娱乐");
        xxylCategory.setChildClassList(xxylList);
        categoryList.add(xxylCategory);
        // 3.生活服务
        CategoryEntity lifeCategory = new CategoryEntity();
        lifeCategory.setParentClassName("生活服务");
        ArrayList<String> lifeList = new ArrayList<String>();
        lifeList.add("银行");
        lifeList.add("邮局");
        lifeList.add("学校");
        lifeList.add("医院诊所");
        lifeList.add("牙医");
        lifeList.add("宠物");
        lifeList.add("旅行社");
        lifeList.add("更多生活服务");
        lifeCategory.setChildClassList(lifeList);
        categoryList.add(lifeCategory);
        // 4.旅馆酒店
        CategoryEntity hotelCategory = new CategoryEntity();
        hotelCategory.setParentClassName("旅馆酒店");
        ArrayList<String> hotelList = new ArrayList<String>();
        hotelList.add("酒店");
        hotelList.add("度假村");
        hotelList.add("公寓式酒店");
        hotelList.add("更多酒店住宿");
        hotelCategory.setChildClassList(hotelList);
        categoryList.add(hotelCategory);
        // 5.购物
        CategoryEntity shoppingCategory = new CategoryEntity();
        shoppingCategory.setParentClassName("购物");
        ArrayList<String> shoppingList = new ArrayList<String>();
        shoppingList.add("超市/便利店");
        shoppingList.add("商场");
        shoppingList.add("特色集市");
        shoppingList.add("数码家电");
        shoppingList.add("药店");
        shoppingList.add("品牌店");
        shoppingList.add("书店");
        shoppingList.add("花店");
        shoppingList.add("更多购物场所");
        shoppingCategory.setChildClassList(shoppingList);
        categoryList.add(shoppingCategory);
        // 6.运动健身
        CategoryEntity ydjsCategory = new CategoryEntity();
        ydjsCategory.setParentClassName("运动健身");
        ArrayList<String> ydjsList = new ArrayList<String>();
        ydjsList.add("健身房");
        ydjsList.add("体育场馆");
        ydjsList.add("武术场馆");
        ydjsList.add("游泳馆");
        ydjsList.add("保龄球馆");
        ydjsList.add("高尔夫场");
        ydjsList.add("更多运动场馆");
        ydjsCategory.setChildClassList(ydjsList);
        categoryList.add(ydjsCategory);
        // 7.爱车
        CategoryEntity aicheCategory = new CategoryEntity();
        aicheCategory.setParentClassName("爱车");
        ArrayList<String> aicheList = new ArrayList<String>();
        aicheList.add("停车场");
        aicheList.add("驾校");
        aicheList.add("维修保养");
        aicheList.add("汽车租凭");
        aicheList.add("加油站");
        aicheCategory.setChildClassList(aicheList);
        categoryList.add(aicheCategory);
        return categoryList;
    }

    // ****************** Handler常量 *************************//
    public static final int UpdateLV = 1;
}
